PHPUnit\Framework\TestCase D

Total Complexity 335
Dependencies 75
Dependents 22
Total lines 2,503
Lines of code 1,308
Logical lines of code 595
Comment lines 500
Methods 144
Properties 43

Methods 144

Method Rating Maintainability Complexity Lines of code
runBare()
C
32 25 106
run()
C
30 22 116
handleDependencies()
B
38 20 72
runTest()
B
37 14 95
checkExceptionExpectations()
A
51 11 26
registerMockObjectsFromTestArguments()
A
53 9 24
restoreGlobalState()
S
53 7 25
setLocale()
S
52 7 24
setExpectedExceptionFromAnnotation()
S
53 7 24
verifyMockObjects()
S
53 7 24
createPartialMock()
S
50 6 32
isCallableTestMethod()
S
54 6 23
createGlobalStateSnapshot()
S
49 5 35
shouldInvocationMockerBeReset()
S
61 5 12
recordDoubledType()
S
63 5 12
compareGlobalStateSnapshots()
S
55 4 22
stopOutputBuffering()
S
58 4 17
snapshotGlobalState()
S
67 5 7
getDataSetAsString()
S
59 4 15
getMockFromWsdl()
S
52 3 28
checkRequirements()
S
62 4 12
runInSeparateProcess()
S
74 4 4
toString()
S
58 2 17
hasExpectationOnOutput()
S
78 3 3
hasOutput()
S
67 3 9
prophesize()
S
66 3 9
setBackupStaticAttributes()
S
73 3 5
setBackupGlobals()
S
73 3 5
iniSet()
S
61 2 14
compareGlobalStateSnapshotPart()
S
61 2 13
createMock()
S
65 2 11
getMockBuilder()
S
68 2 7
dataDescription()
S
79 2 3
getName()
S
71 2 6
hasFailed()
S
75 2 4
getActualOutput()
S
71 2 6
setRunClassInSeparateProcess()
S
74 2 5
setRunTestInSeparateProcess()
S
74 2 5
cleanupIniSettings()
S
70 2 6
cleanupLocaleSettings()
S
70 2 6
createConfiguredMock()
S
68 2 7
getMockForTrait()
S
60 1 15
__construct()
S
69 2 7
getProphet()
S
72 2 6
getMockObjectGenerator()
S
72 2 6
warnAboutDependencyThatDoesNotExist()
S
61 1 15
markSkippedForMissingDependency()
S
61 1 15
setDoesNotPerformAssertionsFromAnnotation()
S
70 2 6
unregisterCustomComparators()
S
69 2 7
getMockForAbstractClass()
S
60 1 15
getMockClass()
S
61 1 14
markSkippedForNotSpecifyingDependency()
S
63 1 12
dataName()
S
82 1 3
isInIsolation()
S
82 1 3
setBeStrictAboutChangesToGlobalState()
S
81 1 3
setDependencyInput()
S
81 1 3
createTestProxy()
S
73 1 6
startOutputBuffering()
S
74 1 5
addWarning()
S
80 1 3
setPreserveGlobalState()
S
81 1 3
getProvidedData()
S
82 1 3
setInIsolation()
S
81 1 3
getResult()
S
82 1 3
getObjectForTrait()
S
66 1 10
setResult()
S
81 1 3
setOutputCallback()
S
81 1 3
getTestResultObject()
S
82 1 3
createStub()
S
80 1 3
setTestResultObject()
S
81 1 3
registerMockObject()
S
80 1 3
addToAssertionCount()
S
81 1 3
getNumAssertions()
S
82 1 3
usesDataProvider()
S
80 1 3
onNotSuccessfulTest()
S
82 1 3
createResult()
S
82 1 3
getDependencyInput()
S
82 1 3
any()
S
81 1 3
hasDependencies()
S
80 1 3
setUp()
S
91 1 2
expectNotToPerformAssertions()
S
81 1 3
expectExceptionObject()
S
73 1 5
expectExceptionMessageRegExp()
S
76 1 4
expectExceptionMessageMatches()
S
81 1 3
expectExceptionMessage()
S
81 1 3
expectExceptionCode()
S
81 1 3
expectException()
S
81 1 3
expectOutputString()
S
81 1 3
expectOutputRegex()
S
81 1 3
getActualOutputForAssertion()
S
76 1 4
count()
S
82 1 3
tearDown()
S
91 1 2
assertPostConditions()
S
91 1 2
assertPreConditions()
S
91 1 2
tearDownAfterClass()
S
89 1 2
expectDeprecationMessage()
S
81 1 3
setUpBeforeClass()
S
89 1 2
onConsecutiveCalls()
S
80 1 3
throwException()
S
80 1 3
returnSelf()
S
81 1 3
returnCallback()
S
80 1 3
returnArgument()
S
80 1 3
returnValueMap()
S
80 1 3
returnValue()
S
80 1 3
at()
S
80 1 3
atMost()
S
80 1 3
exactly()
S
80 1 3
once()
S
80 1 3
atLeastOnce()
S
81 1 3
atLeast()
S
75 1 5
expectDeprecation()
S
81 1 3
expectDeprecationMessageMatches()
S
81 1 3
getDependencies()
S
82 1 3
setGroups()
S
81 1 3
setDependencies()
S
81 1 3
setName()
S
81 1 3
never()
S
80 1 3
getExpectedExceptionMessageRegExp()
S
82 1 3
getExpectedExceptionMessage()
S
82 1 3
getExpectedExceptionCode()
S
82 1 3
getExpectedException()
S
82 1 3
doesNotPerformAssertions()
S
82 1 3
isLarge()
S
80 1 3
isMedium()
S
80 1 3
isSmall()
S
80 1 3
hasSize()
S
80 1 3
getSize()
S
72 1 6
getAnnotations()
S
73 1 6
getGroups()
S
82 1 3
expectNotice()
S
81 1 3
doubledTypes()
S
80 1 3
setUseErrorHandler()
S
91 1 2
registerComparator()
S
76 1 4
getStatusMessage()
S
82 1 3
markAsRisky()
S
81 1 3
getStatus()
S
82 1 3
expectErrorMessageMatches()
S
81 1 3
expectErrorMessage()
S
81 1 3
expectError()
S
81 1 3
expectWarningMessageMatches()
S
81 1 3
expectWarningMessage()
S
81 1 3
expectWarning()
S
81 1 3
expectNoticeMessageMatches()
S
81 1 3
expectNoticeMessage()
S
81 1 3
setRegisterMockObjectsFromTestArgumentsRecursively()
S
81 1 3